Repository navigation
ci(android): overlap the smoke job CLI build with the fixture restore - #4663
Conversation
Size Report
Startup median (7 runs, lower is better):
|
The job built the CLI as the first command of the emulator script, so a booted emulator waited for a build that needs no device. Build the CLI as a step instead, in one parallel group with the fixture restore: the two share no outputs, write disjoint paths, and the restore is the slower one, so the build leaves the critical path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ee3e05d to
5b93ec2
Compare
device-lane-impact.test.ts walked a job's flat step list, so a step inside a parallel group read as no step and its gate went unchecked. Flatten the groups before the walk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TimingsRead from the job logs. The lane's noise is wider than this change, so the table gives the
Baseline for the step split: run 44154306220 job 331 s, where the emulator script opened with Emulator boot alone ranged 34 s to 63 s across these runs, and the fixture E2E 165 s to 244 s, so neither branch run can rank below the other on wall time. The removable wait is the one the change deletes: a booted emulator no longer sits through a build. |
|
This PR is ready from review at 163dc3e: the build and fixture restore overlap as intended, and I found no problems. One check is still queued, not failed. The other 18 checks are green at this head, including both Android Smoke Tests runs, Repo Guards & Compatibility and Integration Tests. There are no conflicts, and nothing else needs to happen before merge. No red run of the parallel group exists yet, so failure propagation is shown only by the workflow semantics. Not blocking: these can be taken or left. The new |
Export runnableSteps from scripts/gate/workflows.ts, which already opened parallel groups for the gate manifest, and read workflow steps through it in the Android lane guards. Keep the step type generic so the gate module owns no test-only field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
Applied both notes in c3568f5.
The Local: |
|
One more measured run, on head c3568f5: run 44186082690 — job 335 s, parallel group 37 s (build 9 s inside the 37 s restore), emulator step 253 s with no |
|
The code at c3568f5 looks good: the step reader is now shared instead of a third copy, as suggested. My earlier review at 163dc3e was also clean, so nothing from it is left open. The Smoke Tests change in android.yml, the update in scripts/gate/workflows.ts and the two guard tests all passed in CI at this head, so the changed route has run. All 19 checks pass, and there are no conflicts. The 335 s / 37 s / 9 s timings come from the PR body. Nothing else needs to happen before merge. |
Summary
The
Smoke Testsjob built the CLI as the first command of its emulator script, so a booted emulator sat through a build that needs no device.Build the CLI as a step instead, in one
parallel:group with the fixture restore. The two share no outputs and write disjoint paths (dist/versus.tmp/fixture-appthroughexamples/test-app/node_modules). The restore is the slower of the two, so the build leaves the critical path. The system image keeps its slot next to the emulator step.The two guards that read
android.ymlnow openparallel:groups throughrunnableSteps, exported fromscripts/gate/workflows.ts, the walk the gate manifest already used.No device case is added, removed, or reordered.
Validation
Tested SHA
c3568f5. All workflows green at that head; run 44186082690: job 335 s, build 9 s inside the 37 s restore group, nogate buildin the emulator step.pnpm check:gate-manifest— ok.fixture-cachegate (test/ci/trusted-fixture-artifact.test.mjs) andscripts/__tests__/device-lane-impact.test.tspass with the shared walk.mainranges 259–470 s, so a 13–17 s saving is within noise. Per-run timings are in the PR comments.🤖 Generated with Claude Code